package minidb.parse.exps;

public class InsertExp extends SQLExp
{
	public String tableName;
	public FieldList fieldList;
	public ValueList valueList;
	
	public InsertExp(String tn,FieldList fl,ValueList vl)
	{
		this.tableName=tn;
		this.fieldList=fl;
		this.valueList=vl;
	}

	@Override
	public String Print()
	{
		return "INSERT INTO "+this.tableName+"("+this.fieldList.Print_Base()+")"
			+"\nVALUES("+this.valueList.Print()+")\n";
	}
}
